import request from '@/utils/request'

// 查询章节时间计划列表
export function listChapter_plan(query) {
  return request({
    url: '/teach/chapter_plan/list',
    method: 'get',
    params: query
  })
}

// 查询章节时间计划详细
export function getChapter_plan(id) {
  return request({
    url: '/teach/chapter_plan/' + id,
    method: 'get'
  })
}

// 新增章节时间计划
export function addChapter_plan(data) {
  return request({
    url: '/teach/chapter_plan',
    method: 'post',
    data: data
  })
}

// 修改章节时间计划
export function updateChapter_plan(data) {
  return request({
    url: '/teach/chapter_plan',
    method: 'put',
    data: data
  })
}

// 删除章节时间计划
export function delChapter_plan(id) {
  return request({
    url: '/teach/chapter_plan/' + id,
    method: 'delete'
  })
}
